package com.david.rocket;

import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class RocketProducer {
    @Autowired
    private RocketMQTemplate rocketMQTemplate;

    @Test
    public void producer() {
        rocketMQTemplate.convertAndSend("test-mq1", "hello world");
    }
}
